<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>

</head>
</head>
<body>
<div id="app">
  <ol>
    <li v-for="book in books">
      <div v-for="(value,key) in book">{{key}}:{{value}}</div>
    </li>
  </ol>

</div>
<!-- 1:引包 -->
<script type="text/javascript" src="../../node_modules/vue/dist/vue.js"></script>
<script type="text/javascript">
  new Vue({
    el: "#app",
    data: {
      books:[
        {
          "Name": "西游",
          "Price": 30,
          "Author": "吴承恩",
          "载体": "电子"
        },
        {
          "Name": "红楼",
          "Price": 30,
          "Author": "曹雪芹",
          "载体": "文本"
        }
      ]


    },
    methods: {
      changeScore: function () {
        this.score = Math.round(Math.random() * 100)
      }
    }

  })
</script>
</body>
</html>
